import request from '@/utils/request'
export const getRoleList = (params) => {
  return request.get('/sys/role', { params })
}

export const addRoleList = (data) => {
  return request.post('/sys/role', data)
}
// export const delRoleList = (id) => {
//   return request.delete(`/sys/role/${id}`)
// }
export function delRoleList(id) {
  return request({
    url: `/sys/role/${id}`,
    method: 'delete'
  })
}

export const updateRoleList = (data) => {
  return request.put(`/sys/role/${data.id}`, data)
}
